package com.ma.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @ProjectName: project
 * @Package: com.ma.entity
 * @ClassName: Teacher
 * @Author: YHHHH
 * @Description:
 * @Date: 2021/3/4 22:57
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("project")
@Accessors(chain = true)
public class Teacher implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer teacherId;  //老师编号

    @TableField("name")
    private String teacherName; //老师姓名

    @TableField("password")
    private Integer password;    //登陆密码

    @TableField("image")
    private String teacherImage;  //头像

    @TableField("phone")
    private String teacherPhone;    //联系电话

    @TableField("email")
    private String teacherEmail;    //邮箱

    private Major studentMajor;     //专业

    private List<Project> projects;

    @TableField("mid")
    private Integer mid;
}
